#pragma once

#include "BaseObject.h"
#include "SGD Wrappers/CSGD_TextureManager.h"
#include "SGD Wrappers/CSGD_DirectInput.h"

class Elite: public BaseObject
{
private:

public:
	Elite()
	{
		SetImageID(CSGD_TextureManager::GetInstance()->LoadTexture("Resources/Graphics/pockles.png", 0));
		SetPosition(D3DXVECTOR2(300,300));
	}
	~Elite(){}

	bool CheckCollision(BaseObject* theObject){return false;}
	RECT GetCollisionRect(){RECT t; return t;}
	void Update(float ElapsedTime)
	{
		if(CSGD_DirectInput::GetInstance()->KeyDown(DIK_RIGHT))
		{
			float theX = GetPosition().x;
			theX += 100 * ElapsedTime;
			SetPosition(D3DXVECTOR2(theX, GetPosition().y));
		}
			if(CSGD_DirectInput::GetInstance()->KeyDown(DIK_LEFT))
		{
			float theX = GetPosition().x;
			theX -= 100 * ElapsedTime;
			SetPosition(D3DXVECTOR2(theX, GetPosition().y));
		}
	}
	void Render()
	{
		CSGD_TextureManager::GetInstance()->Draw(GetImageID(), (int)GetPosition().x, (int)GetPosition().y);
	}
};